From: Álvaro Fernández Rojas Date: Fri, 14 Nov 2025 16:42:35 +0000 (+0100) Subject: dhcpv6-ia: add missing limits header X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=d3dc577d7e843b21ecae0b17de4a6cce36b075db;p=project%2Fodhcpd.git dhcpv6-ia: add missing limits header Fix the following build error by including : src/dhcpv6-ia.c: In function 'handle_addrlist_change': src/dhcpv6-ia.c:495:53: error: 'INT_MAX' undeclared (first use in this function) 495 | a->fr_cnt = INT_MAX; | ^~~~~~~ src/dhcpv6-ia.c:33:1: note: 'INT_MAX' is defined in header ''; did you forget to '#include '? 32 | #include +++ |+#include 33 | src/dhcpv6-ia.c:495:53: note: each undeclared identifier is reported only once for each function it appears in 495 | a->fr_cnt = INT_MAX; | ^~~~~~~ Fixes: 7136fbe390a5 ("dhcpv6-ia: split statefile handling to separate file") Signed-off-by: Álvaro Fernández Rojas Link: https://github.com/openwrt/odhcpd/pull/311 --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 209c367..4b11b57 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include